home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 16 / IOPROG_16.ISO / soft / macaxsdk / macsdk.hqx / ActiveX DR3 SDK / ActiveX SDK / Container Library / ScriptingAPI.h / ScriptingAPI.h
Encoding:
Text File  |  1997-08-25  |  1.3 KB  |  55 lines  |  [TEXT/CWIE]

  1. //
  2. //  ScriptingAPI.h
  3. //
  4. // >>> ⌐ 1996-1997 Microsoft Corporation.  All rights reserved. <<<
  5. //
  6.  
  7. #define _MAC
  8. #define NONAMELESSUNION
  9.  
  10. #ifndef _OLE2_H_
  11. #include <ole2.h>
  12. #endif
  13.  
  14. #ifndef _DISPATCH_H_
  15. #include <dispatch.h>
  16. #endif
  17.  
  18. #ifndef _H_AXTypes
  19. #include <AXTypes.h>
  20. #endif
  21.  
  22.  
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26.  
  27. #pragma internal off
  28. #pragma import on
  29.  
  30.  
  31. // ******* Scripting  **************/
  32. AXErrorCode    AX_ConnectScripts(AXRefID inSiteID, IDispatch* inEventDispatch, IDispatch** outMethodDispatch, AXRefID* outEventConnection);
  33. AXErrorCode    AX_DisconnectScripts(IDispatch* inMethodDispatch, AXRefID inEventConnection);
  34.  
  35. // ************ Scripting Utility functions ***************** //
  36. char*         AX_GetBSTR(VARIANT* inBSTR);
  37. AXErrorCode AX_SetBSTR(char* inStr, VARIANT* outBSTR);
  38. AXErrorCode AX_InitDispatchParams(DISPPARAMS* ioParams, Uint32 inNumParams);
  39. AXErrorCode AX_AddDispatchParam(VARIANTARG* inParam, DISPPARAMS* ioParams);
  40. AXErrorCode AX_ReleaseDispatchParams(DISPPARAMS* ioParams);
  41. AXErrorCode AX_InitVariant(VARIANT* ioVariant);
  42. AXErrorCode AX_ReleaseVariant(VARIANT* ioVariant);
  43. AXErrorCode AX_ChangeType(VARIANT* inSource, VARTYPE inType, Uint16 inFlags, VARIANT* outDest);
  44.  
  45.  
  46.  
  47. #pragma import reset
  48. #pragma internal reset
  49.  
  50.  
  51. #ifdef __cplusplus
  52. }  /* end extern "C" */
  53. #endif
  54.  
  55.